
<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8"%>

<%
	String path = request.getContextPath();
	String useruuid = (String) session.getAttribute("Useruuid");
	if (useruuid == null|| "".equals(useruuid) ) {
		request.getRequestDispatcher(path + "/login.jsp").forward(
				request, response);
	}
%>
<!DOCTYPE HTML>

<HTML>
<HEAD>
<META content="IE=11.0000" http-equiv="X-UA-Compatible">

<META charset="utf-8">
<META http-equiv="X-UA-Compatible" content="IE=edge">
<TITLE>微信公众平台</TITLE>

<LINK href="<%=path%>/images/icon_led.png" rel="Shortcut Icon">
<LINK href="<%=path%>/css/layout_head.css" rel="stylesheet"
	type="text/css">
<LINK href="<%=path%>/css/base.css" rel="stylesheet" type="text/css">
<LINK href="<%=path%>/css/lib.css" rel="stylesheet" type="text/css">

<LINK href="<%=path%>/page_message.css" rel="stylesheet">
<LINK href="<%=path%>/pagination.css" rel="stylesheet">
</HEAD>
<script type="text/javascript">
	var username = user.username;
</script>

<BODY class="zh_CN">

	<%@include file="/mheader.jsp"%>
	<DIV class="body page_message" id="body">
		<DIV class="container_box cell_layout side_l" id="js_container_box">
			<%@include file="/menu.jsp"%>


			<div class="col_main">
				<div class="main_hd">
					<h2>消息管理</h2>
					<div class="title_tab" id="topTab">
						<ul class="tab_navs title_tab" data-index="0">

							<li class="tab_nav first js_top  selected" data-index="0"
								data-id="total"><a
								href="/cgi-bin/message?t=message/list&amp;count=20&amp;day=7&amp;token=570091148&amp;lang=zh_CN&amp;filterivrmsg=1">全部消息</a></li>

							<li class="tab_nav  js_top sub" data-index="1" data-id="today"><a
								href="/cgi-bin/message?t=message/list&amp;count=20&amp;day=0&amp;token=570091148&amp;lang=zh_CN&amp;filterivrmsg=1">今天</a></li>



							<li class="tab_nav  js_top sub" data-index="2"
								data-id="yesterday"><a
								href="/cgi-bin/message?t=message/list&amp;count=20&amp;day=1&amp;token=570091148&amp;lang=zh_CN&amp;filterivrmsg=1">昨天</a></li>


							<li class="tab_nav  js_top sub" data-index="3"
								data-id="beforeYesterday"><a
								href="/cgi-bin/message?t=message/list&amp;count=20&amp;day=2&amp;token=570091148&amp;lang=zh_CN&amp;filterivrmsg=1">前天</a></li>


							<li class="tab_nav  js_top sub" data-index="4" data-id="fivedays"><a
								href="/cgi-bin/message?t=message/list&amp;count=20&amp;day=3&amp;token=570091148&amp;lang=zh_CN&amp;filterivrmsg=1">更早</a></li>


							<li class="tab_nav  js_top " data-index="5" data-id="star"><a
								href="/cgi-bin/message?t=message/list&amp;count=20&amp;action=star&amp;token=570091148&amp;lang=zh_CN&amp;filterivrmsg=1">星标消息</a></li>


						</ul>
					</div>
					<div class="extra_info search_bar">
						&nbsp; <span class="frm_input_box search append"><a
							class="frm_input_append" id="msgSearchBtn"
							href="javascript:void(0);"><i
								class="icon16_common search_gray">搜索</i>&nbsp;</a> <input
							class="frm_input" id="msgSearchInput" type="text"
							placeholder="消息内容" value=""> </span>
					</div>
				</div>
				<div class="main_bd">
					<div class="sub_title_bar white">
						<div class="info">
							<h3 id="page_title">
								全部消息<span>(只保存最近5天的消息)</span>
							</h3>
							<label class="frm_checkbox_label selected" for=""><i
								class="icon_checkbox"></i><input class="frm_checkbox"
								type="checkbox" data-label="不提醒">隐藏关键词消息</label>
						</div>
					</div>
					<div class="msg_box" id="newMsgTip" style="display: none;">
						<div class="inner">
							<a
								href="https://mp.weixin.qq.com/cgi-bin/message?t=message/list&amp;token=570091148&amp;count=20&amp;day=7"><span
								id="newMsgNum"></span>条新消息，点击查看</a>
						</div>
					</div>
					<ul class="message_list" id="listContainer">
						<li class="message_item " id="msgListItem200632112"
							data-id="200632112">

							<div class="message_opr">

								<a title="收藏消息" class="js_star icon18_common star_gray"
									href="javascript:;" starred="" idx="200632112" action="">取消收藏</a>



								<a title="快捷回复" class="icon18_common reply_gray js_reply"
									href="javascript:;" data-id="200632112"
									data-tofakeid="972645482">快捷回复</a>
							</div>

							<div class="message_info">
								<div class="message_status">
									<em class="tips">已回复</em>
								</div>
								<div class="message_time">09:25</div>
								<div class="user_info">

									<a class="remark_name"
										href="/cgi-bin/singlesendpage?tofakeid=972645482&amp;t=message/send&amp;action=index&amp;token=570091148&amp;lang=zh_CN"
										target="_blank" data-fakeid="972645482">孤雁</a> <span
										class="nickname" data-fakeid="972645482"></span> <a
										title="修改备注" class="icon14_common edit_gray js_changeRemark"
										style="display: none;" href="javascript:;"
										data-fakeid="972645482"></a> <a class="avatar"
										href="/cgi-bin/singlesendpage?tofakeid=972645482&amp;t=message/send&amp;action=index&amp;token=570091148&amp;lang=zh_CN"
										target="_blank" data-fakeid="972645482"> <img
										src="/misc/getheadimg?token=570091148&amp;fakeid=972645482"
										data-fakeid="972645482">
									</a>

								</div>
							</div>

							<div class="message_content text">
								<div class="wxMsg" id="wxMsg200632112" data-id="200632112">1122</div>
							</div>


							<div class="js_quick_reply_box quick_reply_box"
								id="quickReplyBox200632112">
								<label class="frm_label" for="">快速回复:</label>
								<div class="emoion_editor_wrp js_editor"></div>
								<div class="verifyCode"></div>
								<p class="quick_reply_box_tool_bar">
									<span class="btn btn_primary btn_input" data-id="200632112">
										<button class="js_reply_OK" data-id="200632112"
											data-fakeid="972645482">发送</button>
									</span><a class="js_reply_pickup btn btn_default pickup"
										href="javascript:;" data-id="200632112">收起</a>
								</p>
							</div>

						</li>

						<li class="message_item " id="msgListItem200632106"
							data-id="200632106">

							<div class="message_opr">

								<a title="收藏消息" class="js_star icon18_common star_gray"
									href="javascript:;" starred="" idx="200632106" action="">取消收藏</a>



								<a title="快捷回复" class="icon18_common reply_gray js_reply"
									href="javascript:;" data-id="200632106"
									data-tofakeid="972645482">快捷回复</a>
							</div>

							<div class="message_info">
								<div class="message_status">
									<em class="tips">已回复</em>
								</div>
								<div class="message_time">09:24</div>
								<div class="user_info">

									<a class="remark_name"
										href="/cgi-bin/singlesendpage?tofakeid=972645482&amp;t=message/send&amp;action=index&amp;token=570091148&amp;lang=zh_CN"
										target="_blank" data-fakeid="972645482">孤雁</a> <span
										class="nickname" data-fakeid="972645482"></span> <a
										title="修改备注" class="icon14_common edit_gray js_changeRemark"
										style="display: none;" href="javascript:;"
										data-fakeid="972645482"></a> <a class="avatar"
										href="/cgi-bin/singlesendpage?tofakeid=972645482&amp;t=message/send&amp;action=index&amp;token=570091148&amp;lang=zh_CN"
										target="_blank" data-fakeid="972645482"> <img
										src="/misc/getheadimg?token=570091148&amp;fakeid=972645482"
										data-fakeid="972645482">
									</a>

								</div>
							</div>

							<div class="message_content text">
								<div class="wxMsg" id="wxMsg200632106" data-id="200632106">123</div>
							</div>


							<div class="js_quick_reply_box quick_reply_box"
								id="quickReplyBox200632106">
								<label class="frm_label" for="">快速回复:</label>
								<div class="emoion_editor_wrp js_editor"></div>
								<div class="verifyCode"></div>
								<p class="quick_reply_box_tool_bar">
									<span class="btn btn_primary btn_input" data-id="200632106">
										<button class="js_reply_OK" data-id="200632106"
											data-fakeid="972645482">发送</button>
									</span><a class="js_reply_pickup btn btn_default pickup"
										href="javascript:;" data-id="200632106">收起</a>
								</p>
							</div>

						</li>

						<li class="message_item replyed" id="msgListItem200622916"
							data-id="200622916">

							<div class="message_opr">

								<a title="收藏消息" class="js_star icon18_common star_gray"
									href="javascript:;" starred="" idx="200622916" action="">取消收藏</a>



								<a title="快捷回复" class="icon18_common reply_gray js_reply"
									href="javascript:;" data-id="200622916"
									data-tofakeid="972645482">快捷回复</a>
							</div>

							<div class="message_info">
								<div class="message_status">
									<em class="tips">已回复</em>
								</div>
								<div class="message_time">星期二 13:02</div>
								<div class="user_info">

									<a class="remark_name"
										href="/cgi-bin/singlesendpage?tofakeid=972645482&amp;t=message/send&amp;action=index&amp;token=570091148&amp;lang=zh_CN"
										target="_blank" data-fakeid="972645482">孤雁</a> <span
										class="nickname" data-fakeid="972645482"></span> <a
										title="修改备注" class="icon14_common edit_gray js_changeRemark"
										style="display: none;" href="javascript:;"
										data-fakeid="972645482"></a> <a class="avatar"
										href="/cgi-bin/singlesendpage?tofakeid=972645482&amp;t=message/send&amp;action=index&amp;token=570091148&amp;lang=zh_CN"
										target="_blank" data-fakeid="972645482"> <img
										src="/misc/getheadimg?token=570091148&amp;fakeid=972645482"
										data-fakeid="972645482">
									</a>

								</div>
							</div>

							<div class="message_content text">
								<div class="wxMsg" id="wxMsg200622916" data-id="200622916">12345</div>
							</div>


							<div class="js_quick_reply_box quick_reply_box"
								id="quickReplyBox200622916">
								<label class="frm_label" for="">快速回复:</label>
								<div class="emoion_editor_wrp js_editor"></div>
								<div class="verifyCode"></div>
								<p class="quick_reply_box_tool_bar">
									<span class="btn btn_primary btn_input" data-id="200622916">
										<button class="js_reply_OK" data-id="200622916"
											data-fakeid="972645482">发送</button>
									</span><a class="js_reply_pickup btn btn_default pickup"
										href="javascript:;" data-id="200622916">收起</a>
								</p>
							</div>

						</li>
					</ul>
					<div class="tool_area">
						<div class="pagination_wrp pageNavigator" style="display: none;">
							<div class="pagination" id="wxPagebar_1408590118154">
								<span class="page_nav_area"> <a class="btn page_first"
									style="display: none;" href="javascript:void(0);"></a> <a
									class="btn page_prev" style="display: none;"
									href="javascript:void(0);"><i class="arrow"></i></a> <span
									class="page_num"> <label>1</label> <span class="num_gap">/</span>
										<label>1</label>
								</span> <a class="btn page_next" style="display: none;"
									href="javascript:void(0);"><i class="arrow"></i></a> <a
									class="btn page_last" style="display: none;"
									href="javascript:void(0);"></a>
								</span>

							</div>
						</div>
					</div>
					<div class="search_more " id="searchMore" href="javascript:;">
						<div class="msg_box">
							<div class="inner">
								<a id="moreTxt" href="javascript:void(0);">查看更多</a>
							</div>
						</div>
						<i class="icon32_loading light" id="moreLoading"></i>
					</div>
				</div>
			</div>



		</DIV>
		<%@include file="/contact.jsp"%>
	</DIV>
	<%@include file="/footer.jsp"%>

</BODY>
</HTML>


<SCRIPT type="text/javascript">
	wx.cgiData = {
		total_count : 3,
		latest_msg_id : '200632112',
		count : "20" * 1 || 20,
		day : "7",
		frommsgid : "",
		can_search_msg : "1",
		offset : "",
		action : "",
		keyword : "",
		list : ({
			"msg_item" : [ {
				"id" : 200632112,
				"type" : 1,
				"fakeid" : "972645482",
				"nick_name" : "孤雁",
				"date_time" : 1408584305,
				"content" : "1122",
				"source" : "",
				"msg_status" : 4,
				"has_reply" : 0,
				"refuse_reason" : "",
				"multi_item" : [],
				"to_uin" : 2396274083,
				"send_stat" : {
					"total" : 0,
					"succ" : 0,
					"fail" : 0
				}
			}, {
				"id" : 200632106,
				"type" : 1,
				"fakeid" : "972645482",
				"nick_name" : "孤雁",
				"date_time" : 1408584248,
				"content" : "123",
				"source" : "",
				"msg_status" : 4,
				"has_reply" : 0,
				"refuse_reason" : "",
				"multi_item" : [],
				"to_uin" : 2396274083,
				"send_stat" : {
					"total" : 0,
					"succ" : 0,
					"fail" : 0
				}
			}, {
				"id" : 200622916,
				"type" : 1,
				"fakeid" : "972645482",
				"nick_name" : "孤雁",
				"date_time" : 1408424576,
				"content" : "12345",
				"source" : "",
				"msg_status" : 4,
				"has_reply" : 1,
				"refuse_reason" : "",
				"multi_item" : [],
				"to_uin" : 2396274083,
				"send_stat" : {
					"total" : 0,
					"succ" : 0,
					"fail" : 0
				}
			} ]
		}).msg_item,
		filterivrmsg : ""
	}
	seajs.use("message/list");
</SCRIPT>


<SCRIPT>
	function getico(i) {
		var _img = new Image(1, 1);
		_img.src = wx.url(location.protocol + "//" + location.host
				+ "/misc/getico" + "?location=" + (i || -1) + "&rand="
				+ Math.random());
	};
	getico('1699');

	console.log("DOM Loaded Time : " + (mp.time.domLoaded - mp.time.begin)
			+ " ms");
	if (typeof page_dom_load_id != "undefined"
			&& typeof page_dom_load_key != "undefined") {
		wx_save_report(page_dom_load_id, page_dom_load_key, mp.time.domLoaded
				- mp.time.begin);
		wx_save_report(page_all_dom_load_id, page_all_dom_load_key,
				mp.time.domLoaded - mp.time.begin);
	}
	window.onload = function() {
		mp.time.allResLoaded = (+new Date());

		console.log('All Res Loaded Time : %s ms'.sprintf(mp.time.allResLoaded
				- mp.time.begin));
		if (typeof page_onload_id != "undefined"
				&& typeof page_onload_key != "undefined") {
			wx_save_report(page_onload_id, page_onload_key,
					mp.time.allResLoaded - mp.time.begin);
			wx_save_report(page_all_onload_id, page_all_onload_key,
					mp.time.allResLoaded - mp.time.begin);
		}
		wx_report();
	};
</SCRIPT>


